<div id="send_msg_button"><input value="傳送訊息" type="button" onclick="sendMessageForm();"/></div>
<?php
//echo $user_id;
$all_communication_users = $this->mahana_messaging->get_all_communication_users($user_id);

?>
<?php 
if(!empty($all_communication_users)){
?>

<div id='sender_list'>
	<?php
		foreach($all_communication_users as $key=>$val){
	?>
		<p><a href="javascript: getMessagesBySender(<?php echo $val['id'] ?>)"><?php echo $val['username'] ?></a></p>
	<?php
		}
	?>
</div>
<div id="messages_by_sender">
	請選擇一個對話
</div>

<?php } else{
	echo lang('mahana_'.MSG_ERR_GENERAL);
}?>
	